-- rigid
-- create by shuzy
-- 僵化

return {
    apply = function(prop, baseValue)
        -- 提升的值
        return baseValue - math.modf(baseValue * prop[3] / 1000);
    end,

    -- 每回合触发
    trigger = function(who, prop, base)
        local reduce = prop[3];

        -- 效果被减弱
        local p = PropM.combine(who, "reduce_negative", "rigid");
        reduce = PropM.apply(p, reduce);

        -- 最小一点
        reduce = math.max(1, reduce);

        return base - math.modf(base * reduce / 1000);
    end,

    record = function(target, prop, path)
        return false;
    end
};
